import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      neme: 'Home',
      component: () => import('@/views/Home.vue')
    },
    {
      path: '/activities',
      neme: 'Activities',
      component: () => import('@/views/Activities.vue')
    },
    {
      path: '/hot',
      neme: 'Hot',
      component: () => import('@/views/Hot.vue')
    },
    {
      path: '/profile',
      neme: 'Profile',
      component: () => import('@/views/Profile.vue')
    }, {
      path: '/settings',
      neme: 'Settings',
      component: () => import('@/views/Settings.vue')
    },
    {
      path: '/activity/:id',
      name: 'ActivityDetail',
      component: () => import('@/views/ActivityDeetail.vue')
    }
  ],
})

export default router
